//
//  TEBook.m
//  TintExample
//
//  Created by Kevin Wu on 2/27/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import "TEBook.h"

@implementation TEBook

@synthesize bid = _bid;
@synthesize name = _name;
@synthesize author = _author;

- (void)dealloc {
    TTRelease(_bid);
    TTRelease(_name);
    TTRelease(_author);
    [super dealloc];
}


+ (NSDictionary *)propertyMap {
    return [NSDictionary dictionaryWithObjectsAndKeys:
            @"bid", @"id", 
            @"name", @"name", 
            @"author", @"author", nil];
}

- (NSString *)description {
    return [NSString stringWithFormat:@"%@[bid=%@ name=%@ author=%@]", NSStringFromClass([self class]), _bid, _name, _author];
}

@end
